package com.zw.a.basic.a07.demo07_teacher_exercise;

//案例: 演示抽象类版的 老师类案例.
public class TeacherTest {
    public static void main(String[] args) {
        //1. 测试基础班老师, 空参.
        //抽象类多态版
        Teacher t1 = new BasicTeacher();
        //BasicTeacher t1 = new BasicTeacher();
        t1.setName("刘亦菲");
        t1.setAge(33);
        System.out.println(t1.getName() + "..." + t1.getAge());
        t1.teach();
        System.out.println("---------------------");

        //2. 测试基础班老师, 全参.
        Teacher t2 = new BasicTeacher();
        t2.setName("赵丽颖");
        t2.setAge(31);
        System.out.println(t2.getName() + "..." + t2.getAge());
        t2.teach();



        //3. 测试就业班老师, 空参, 自己做.
        //4. 测试就业班老师, 全参.
    }
}
